// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import VueXss from 'vue-xss'
import VueTour from 'vue-tour'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import 'element-ui/lib/theme-chalk/display.css'
import router from './router'
import 'default-passive-events'
import SlideVerify from 'vue-monoplasty-slide-verify'
import VueCoreVideoPlayer from 'vue-core-video-player'
import Contextmenu from 'vue-contextmenujs'
import VueParticles from 'vue-particles'
require('vue-tour/dist/vue-tour.css')
import hasRole from './utils/directive.js'

 // 此处使用Mock模拟请求（正式使用时请移除）
if (process.env.NODE_ENV === 'development') {
	require('../mock')
}

Vue.use(VueXss)
Vue.use(ElementUI)
Vue.use(SlideVerify)
Vue.use(VueTour)
Vue.use(VueCoreVideoPlayer, {
	lang: 'zh-CN' //这里使用了中文语言，不需要请移除该项
})
Vue.use(Contextmenu)
Vue.use(VueParticles)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
	el: '#app',
	router,
	render: h => h(App)
})
